package com.example.rk.service;

import com.example.rk.common.MyPageInfo;
import com.example.rk.entity.Admin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface AdminService {

    String doRegister(Admin admin);

    String doLogin(Admin admin, HttpSession session);

    String doEdit(Admin admin);

    Admin findById(int id);

    String doAdd(Admin admin);

    void deleteById(int id);

    MyPageInfo findBySearch(HttpServletRequest request);

    Admin getAdmin(int id);

    void setImageUrl(String absolutePath, int id);
}
